const jsdom = require("jsdom");
const {JSDOM} = jsdom;
const dom = new JSDOM(`<!DOCTYPE html><p>Hello world</p>`);
window = dom.window;
document = window.document;
XMLHttpRequest = window.XMLHttpRequest;
navigator = {};

const fs = require("fs")
const esprima = require("esprima")
const estraverse = require("estraverse")
const escodegen = require("escodegen")
const iconv = require("iconv-lite")
const base_ast = require("../../tools/es_ast_tool")
const {convertNodesIntoNode} = require("jsdom/lib/jsdom/living/node");
const reese84_common_ast = require("../common/common_ast");

var en_jscode = base_ast.get_file("./en2.js");
var ast = base_ast.get_ast_by_file("./2.js");

reese84_common_ast.call_encrypt(en_jscode, ast, "a1_0x2141");
base_ast.binary_tool(ast);
base_ast.save_ast_to_file(ast,"./3.js");
